/****************************************************************
 * <strong>MFDataClassSQLAttInfo标签管理类</strong>
 *
 * <p>
 * 标签管理类
 * </p>
 *
 * @author AndyZhang 2011
 * @version 0.1
 * ToDo:
 ***************************************************************/
package com.thinkwide.data.ormapping;

import com.thinkwide.data.core.MFString;

public class MFDataClassSQLAttInfo {
    private String Where;
    private String OrderBy;
    private String SQL;
    private String ViewName;
    private String TableName;

    public void setWhere(String value) {
        Where = value;
    }

    public String getWhere() {
        return Where;
    }

    public void setOrderBy(String value) {
        OrderBy = value;
    }

    public String getOrderBy() {
        return OrderBy;
    }

    public void setSQL(String value) {
        SQL = value;
    }

    public String getSQL() {
        return SQL;
    }

    public void setViewName(String value) {
        ViewName = value;
    }

    public String getViewName() {
        return ViewName;
    }

    public void setTableName(String value) {
        TableName = value;
    }

    public String getTableName() {
        return TableName;
    }

    public String getTableViewName() {
        if (MFString.notNullOrEmpty(ViewName))
            return ViewName;
        else
            return TableName;
    }
}
